# 基础镜像
FROM nginx
# 创建目录
RUN mkdir -p /app/smart-city/smart-city-platform
# 指定路径
WORKDIR /app/smart-city/smart-city-platform
# 删除默认
RUN rm /etc/nginx/conf.d/default.conf
# 复制conf文件到路径
COPY smart-city-platform.conf /etc/nginx/conf.d/
# 复制html文件到路径
COPY dist /app/smart-city/smart-city-platform/
RUN /bin/bash -c 'echo init ok'